// 引入按需加载
import asyncComponent from '@/components/asyncComponent';
const routes = [
    {
        path: "/",
        name: "首页",
        exact: true,
        component: asyncComponent(() => import("@/views/home")),
    },
    {
        path: "/about/:code",
        name: "关于",
        exact: true,
        component: asyncComponent(() => import("@/views/about")),
    },
    {
        path: "/cloudServer/:code",
        name: "云服务器",
        exact: true,
        component: asyncComponent(() => import("@/views/cloudServer")),
    },
    {
        path: "/news/:code",
        name: "新闻公告",
        exact: true,
        component: asyncComponent(() => import("@/views/news")),
    },
    {
        path: "/IDC/:code",
        name: "IDC",
        exact: true,
        component: asyncComponent(() => import("@/views/idc")),
    },
    {
        path: "/login/:code",
        name: "登陆",
        exact: true,
        component: asyncComponent(() => import("@/views/login")),
    },
    {
        path: "/404",
        name: "找不到页面",
        exact: true,
        component: asyncComponent(() => import("@/views/page404")),
    }
];
// http://tools.jb51.net/aideddesign/ckeditor4

export default routes;

